<!DOCTYPE HTML>
<html class="no-js">
  
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/bootstrap.min.css">
  <style>
    body {
      padding-top: 60px;
      padding-bottom: 40px;
    }
  </style>
  <link rel="stylesheet" href="<?php echo base_url();?>assets/css/main.css">

  <script src="<?php echo base_url();?>assets/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
  <script src="<?php echo base_url();?>assets/js/restaurant.js"></script>
    <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>assets/css/test/form.css"
    id="theme" />
  <script type="text/javascript" src="<?php echo base_url();?>assets/js/common/js/form_init.js" id="form_init_script"
    data-name="">
    </script>
    <title>
    	Danh sách hóa đơn
    </title>
  </head>

	<body>
		<?php $this->load->view('supermenu');?>
		 
		 <div class="content">
		    <div class="box">
		      <div class="heading">
		        <h1><img src="<?php echo base_url();?>assets/img/users.png" height="25" width="25px">Danh sách hóa đơn</h1> 
		      </div><!-- end heading -->
		      <br/>
		      <div class="content">
		        <form action="" method="post" id="form" enctype="mutipart/form-data">
		          <table class="list">
		            <thead>
		              <tr>
		                <td width="1" style="
		                text-align:center"><input type="checkbox" onclick="">
		                </td>
		                <td class="left">
		                  <a href="#">Mã số hóa đơn</a>
		                </td>
		                <td class="left">
		                  <a href="#">Nhân viên phục vụ</a>
		                </td>
		                <td class="left">
		                  <a href="#">Thời gian bắt đầu</a>
		                </td>
		                <td class="left">
		                  <a href="#">Thời gian kết thúc</a>
		                </td>
		                <td class="left">
		                  <a href="#">Bàn</a>
		                </td>
		                <td class="left">
		                  <a href="#">Phản hồi khách hàng</a>
		                </td>
		                <td class="right">
		                  <a href="#">Tổng cộng</a>
		                </td>
		              </tr>
		            </thead>
		            <tbody>
		            <?php if (is_array($results)) {?>
			            <?php foreach ($results as $data){?>
			              <tr>
			                <td style="
			                text-align:center">
			                  <input type="checkbox" onclick="">
			                </td>
			                <td class="left">
			                 <a href="<?php echo site_url('statistics/view_detail?id='); echo $data->_id; ?>"><?php echo $data->bill_code?></a>
			                </td>
			                <td class="left">
			                 	<a href="<?php echo site_url('user/view_profile?id='); echo $data->user_id; ?>">
				                	<?php echo $data->first_name." ".$data->last_name?>
				                </a>
			                </td>
			                <td class="left">
				                <?php echo $data->start_time; ?>
			                </td>
			                <td class="left">
			                	<?php if (!empty($data->end_time)){?>
			                		<?php echo $data->end_time; ?>
			                	<?php }?>
			                </td>
			                <td class="left">
			                	<a href="<?php echo site_url('table/view_detail?id='); echo $data->table_id; ?>"><?php echo $data->table_name?></a>
			                </td>
			                <td class="left">
			                  <?php echo nl2br($data->feedback)?>
			                </td>         
			                <td class="right">
			                 	<?php echo $data->total_cost; ?>
			                </td>
			              </tr>
			             <?php }?>
		             <?php }?>
		            </tbody>
		          </table>
		        </form><!-- end form -->
		        <div class="pagination">
		          <div class="links">
		           <?php echo $links; ?>
		          </div>
		        </div>
		      </div>
		    </div><!--end box -->
		
		  </div><!-- end conten -->

<?php $this->load->view('footer');?>